home *** CD-ROM | disk | FTP | other *** search
- 0, In this demonstration, you will see how to connect
- 4, to a Web server that has Anonymous logon disabled.
- 8, When you go to a page in a Web server with
- 10, Anonymous disabled, you're prompted for a valid NT
- 13, account and password. For example, Student is a valid
- 18, account on this Web server. After you've entered an
- 26, account name and password, not only are you allowed
- 29, to access the pages in the Web site, but server-
- 32, side script can read the user name you entered and
- 34, use it to customize the Web pages. For example, this
- 38, Web page reiterates the name that I used to logon
- 42, with. Another page in this Web site also uses
- 46, that information to customize the type of information
- 50, that can be read from a database. Because I've
- 54, logged on as Student, I'm given a list of all the
- 57, classes and the students that are registered for
- 59, those classes. I can go to the page grades.asp, and
- 66, this time logon as "Instructor," which is another
- 74, valid account for this Web server, and the information
- 79, retrieved from the database is the students and
- 81, their grades. Let's take a look at the source for
- 85, this page to see how it's done. This is the page
- 91, grades.asp. This is the line of server-side script that
- 96, retrieves the logon account of the user requesting
- 98, the page. Here we compare that logon account with
- 104, the string "instructor." If instructor is
- 107, logging on to this page, then we retrieve the student ID
- 111, and the grade from the Enrollment table.
- 113, Otherwise, we only retrieve the class ID and the student ID
- 117, from the Enrollment table. So, you have seen how
- 122, to logon onto a Web server that has Anonymous turned
- 125, off and how to use that logon information in
- 128, Active Server Pages.
- 130, END